package com.lwj.service.administration;

import com.lwj.dto.administration.DepartmentDto;
import com.lwj.dto.administration.DepartmentListDto;
import com.lwj.excel.TestExcel;
import com.lwj.model.administration.Department;
import com.lwj.vo.PageBean;
import com.lwj.vo.administration.DepartmentTreeVo;
import com.lwj.vo.administration.DepartmentVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.concurrent.Future;

public interface DepartmentService {
    int deleteByPrimaryKey(String departmentId);

    int insertSelective(Department record);

    Department selectByPrimaryKey(String departmentId);

    int updateByPrimaryKeySelective(Department record);

    PageBean<DepartmentVo> listDepartment( DepartmentListDto dto);

    List<DepartmentTreeVo> listDepartmentTree(String departmentId,boolean excludeDisable);

    List<DepartmentTreeVo> departmentTree(String departmentId,boolean excludeDisable);

    String saveDepartment(DepartmentDto dto);
    Future< List<TestExcel>> data(int a, int b);
}
